<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib uri="http://acegisecurity.org/authz" prefix="authz" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<html>
<head>
    <title>View Models</title>
</head>

<body>

<rad:useBean id="modelViewHelper"/>

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <div id="indexModel">
        <portal:box title="Equipment Models" style="width:800px">
            <display:table name="modelViewHelper.all"
                           decorator="mil.af.amc.adpetracker.web.decorators.ModelDecorator"
                           style="width:800px"
                           excludedParams="method">
                <display:column property="modelManufacturer" title="Manufacturer"/>
                <display:column property="name" title="Model"/>
                <display:column property="actions"/>
            </display:table>

           <html:link href="itemModelAction.do?method=viewCreateModel">New Model</html:link>
            <%--<authz:authorize ifAnyGranted="ROLE_EC,ROLE_ADMIN">--%>
                <!--<p><a href="modelAction.do?method=viewAddModel">New Model</a></p>-->
            <%--</authz:authorize>--%>
        </portal:box>
    </div>
</div>
</body>
</html>